package dome2;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DickYang
 * Date: 2023-05-09
 * Time: 16:01
 */
public class Test {
    public static void main(String[] args) {
        Student[] students = new Student[3];
        students[0] = new Student("李四",18,99);
        students[1] = new Student("张三",20,96);
        students[2] = new Student("王五",10,100);

        Arrays.sort(students);

        System.out.println(Arrays.toString(students));
    }
}
